.class public Lcom/estrongs/android/pop/app/AppCheckUpdateList;
.super Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;
.source "AppCheckUpdateList.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;,
        Lcom/estrongs/android/pop/app/AppCheckUpdateList$e;
    }
.end annotation


# instance fields
.field private d:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private e:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Landroid/graphics/drawable/Drawable;",
            ">;"
        }
    .end annotation
.end field

.field private f:Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;

.field g:Landroid/widget/TextView;

.field h:Landroid/widget/TextView;

.field i:Lcom/estrongs/android/ui/dialog/i;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->i:Lcom/estrongs/android/ui/dialog/i;

    return-void
.end method

.method private A()V
    .locals 9

    const v0, 0x7f090527

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    .line 2
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->d:Ljava/util/HashMap;

    .line 3
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->e:Ljava/util/HashMap;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->d:Ljava/util/HashMap;

    invoke-static {p0, v1}, Lcom/estrongs/android/pop/l;->a(Landroid/content/Context;Ljava/util/Map;)V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->d:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->toArray()[Ljava/lang/Object;

    move-result-object v1

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 7
    invoke-virtual {p0}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 8
    :goto_0
    array-length v6, v1

    if-ge v5, v6, :cond_1

    .line 9
    aget-object v6, v1, v5

    check-cast v6, Ljava/lang/String;

    const/4 v7, 0x0

    .line 10
    :try_start_0
    invoke-virtual {v3, v6}, Landroid/content/pm/PackageManager;->getApplicationIcon(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v7
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    nop

    :goto_1
    if-nez v7, :cond_0

    goto :goto_2

    .line 11
    :cond_0
    iget-object v8, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->e:Ljava/util/HashMap;

    invoke-virtual {v8, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 12
    invoke-virtual {v2, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 13
    :cond_1
    new-instance v1, Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;

    invoke-direct {v1, p0, p0, v2}, Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;-><init>(Lcom/estrongs/android/pop/app/AppCheckUpdateList;Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->f:Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;

    .line 14
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const/4 v1, 0x1

    .line 15
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setItemsCanFocus(Z)V

    .line 16
    invoke-virtual {v0, v4}, Landroid/widget/ListView;->setCacheColorHint(I)V

    return-void
.end method

.method private B()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->A()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->f:Lcom/estrongs/android/pop/app/AppCheckUpdateList$d;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)Ljava/util/HashMap;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->e:Ljava/util/HashMap;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->B()V

    return-void
.end method


# virtual methods
.method public b(Landroid/content/Context;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->i:Lcom/estrongs/android/ui/dialog/i;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Lcom/estrongs/android/ui/dialog/i;

    invoke-direct {v0, p1}, Lcom/estrongs/android/ui/dialog/i;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->i:Lcom/estrongs/android/ui/dialog/i;

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    .line 4
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/i;->b(Z)V

    .line 5
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->i:Lcom/estrongs/android/ui/dialog/i;

    new-instance v0, Lcom/estrongs/android/pop/app/AppCheckUpdateList$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList$c;-><init>(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)V

    invoke-virtual {p1, v0}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->i:Lcom/estrongs/android/ui/dialog/i;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/i;->show()V

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0063

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    const p1, 0x7f090ba1

    .line 3
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->g:Landroid/widget/TextView;

    const v0, 0x7f1100f6

    .line 4
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    const p1, 0x7f0904e9

    .line 5
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->h:Landroid/widget/TextView;

    const v0, 0x7f1100ff

    .line 6
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    const p1, 0x7f11012f

    .line 7
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(I)V

    const p1, 0x7f090224

    .line 8
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    const/4 v0, 0x1

    .line 9
    invoke-virtual {p1, v0}, Landroid/widget/Button;->setFocusable(Z)V

    .line 10
    new-instance v1, Lcom/estrongs/android/pop/app/AppCheckUpdateList$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList$a;-><init>(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)V

    invoke-virtual {p1, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f090091

    .line 11
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 12
    invoke-virtual {p1, v0}, Landroid/view/View;->setFocusable(Z)V

    .line 13
    new-instance v0, Lcom/estrongs/android/pop/app/AppCheckUpdateList$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList$b;-><init>(Lcom/estrongs/android/pop/app/AppCheckUpdateList;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/AppCheckUpdateList;->A()V

    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    return-void
.end method
